package com.letoken.platform.repo.admin.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.letoken.platform.repo.admin.po.AdminSwapConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.admin.req.config.DeleteQuickswapConfigReq;
import com.letoken.platform.repo.admin.res.config.QueryQuickswapConfigRes;
import com.letoken.platform.repo.app.res.config.QuerySwapConfigRes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * let闪兑配置表 Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-11-24
 */
public interface AdminSwapConfigMapper extends BaseMapper<AdminSwapConfig> {

    Page<QueryQuickswapConfigRes> queryQuickswapList(@Param("page") Page<QueryQuickswapConfigRes> page, @Param("tokenId") Integer tokenId);

    void deleteQuickswapConfig(@Param("req") DeleteQuickswapConfigReq req);

    List<QuerySwapConfigRes> querySwapConfig();

    QuerySwapConfigRes querySwapConfigByTokenId(@Param("tokenId") Integer tokenId);
}
